🏠
UberASM objects

The baserom uses a framework of custom objects to allow you to toggle or activate some simple UberASM codes that are in the baserom, most of which are very basic utility features. They are activated simply by inserting a custom extension object into whichever levels you want with no limit. These objects work alongside any level UberASM you may want to use as well.

Contents

Available Objects

The following objects can be used to enable or toggle features or settings in the baserom. Each object has an ID number that corresponds to its Extension value to be used when inserting it as a Custom Object.

IDObjectDescription
98Free Vertical ScrollMakes the camera follow Mario up and down.
99Lock Horizontal ScrollPrevents the camera from scrolling left or right.
9AStart in OFF StateStarts the level with the ON/OFF state in the OFF state on level load.
9BEnable Block DuplicationDisable the effects of a patch that prevents block duplication.
9CHide StatusbarHide the statusbar. This does not disable the item box.
9DEnable Screen ScrollDisable the effects of a patch that prevents scrolling the screen with L or R.
9EEnable SFX EchoEnable the echo for sound effects. Requires your level to have custom music with echo enabled.
A0No Power-up CollectionPrevent Mario from collecting any power-ups (including to the item box).
A2Disable Cape Turnaround ConsistencyDisable the effects of the patch that makes turning around with cape consistent on button press.
A3Enable 8-frame Cape FloatApply a consistent 8 frame counter after the input is registered to adjust Mario's falling speed with cape.
A4Remove Cape Float DelaySet the delay before Mario starts floating with cape to zero frames.
A5Death on Power-up LossLosing a power up will kill Mario instantly. (Makes all hurt blocks death blocks.).
A7Press L & R To DieKills the player if L and R are pressed. Useful for a quick reset.
A9Disable Spin Jump FireballsPrevent Mario from shooting fireballs while spin jumping.
AARestore Springboard BehaviourDisable the effects of a patch that prevents re-grabbing kicked springboards and them zeroing your speed when grabbed. (Enabling spring midairs).
ABDisable Cape FlightPrevents Mario from ever entering flight with cape.
ACDisable Screen ShakeStops all vanilla sources of Layer 1 screen shake.
Earlier versions of the baserom may have fewer objects.

Retry System Settings

Inserting these objects into your level to override the default settings of the retry system or even change the retry settings between sublevels.

IDObjectDescription
B0Instant RetryMake the retry skip using prompt and restart instantly after dying.
B1Prompt RetrySet the retry system to use a prompt that says "Retry" in the middle of the screen.
B2Bottom Left Retry PromptMove the retry prompt to the bottom left (by default it's in the middle) if Prompt retry is active.
B3No Power Ups from MidwaysDisable gaining a power-up (mushroom) from a midway point.
B4Vanilla RetrySet the retry system back to using Vanilla death routine.

Inserting Custom Objects

To insert a custom object, open the "Add Object Manual (hex)" window either from the "Edit → Insert manual..." menu action, or by pressing the Insert key while in Lunar Magic's "Layer 1 editing" mode. This will bring up the following dialog window.

Lunar Magic's Add Object Manual (hex) Window

Next, type the ID value for the UberASM Object from the tables above into the "Size/Type/Ext" field of this dialog, and press "OK" to insert.

Multiple custom UberASM objects can be inserted and active in one level.

When inserted, custom objects will look like a pair of garbage tiles in Lunar Magic since they load a "null" object, but these objects won't actually appear in game.

Garbled Custom object tiles in Lunar Magic

The tiles they are made up of may occasionally use an exit-enabled (door) tile which may display a warning depending on your Lunar Magic settings.